package com.baizhi.service;

import com.baizhi.entity.Article;
import com.github.pagehelper.PageInfo;

public interface ArticleService {
    //查询展示所有文章
    public PageInfo<Article> selectAllArticle(String name,Integer page,Integer limit);
    //添加文章
    public Boolean insertArticle(Article article);
    //修改文章
    public Boolean updateArticle(Article article);
    //查询单个文章
    public Article selectOneArticle(Integer id);
    //删除单个文章
    public Boolean deleteArticle(Integer id);
    //根据上师id修改文章状态
    public Boolean updateGid(Article article);
}
